<?php include_once 'layout/heard.php'?>
<body style="background:#f5f5f5; padding-bottom:50px;">

<div class="content head_bg">
	<div class="head">
        <div class="nav_ico">
        	<span class="ico01"></span>
            <span class="ico02"></span>
            <span class="ico03"></span>
        </div>
        <h1>已完成</h1>
        <a href="xxzx.html" class="news_ico"></a>
    </div>
</div>

<div class="nav_hs"></div>
<div class="nav_bg">
    <div class="nav_com">
        <dl>
            <dd><img src="webroot/riders/images/logo.png"></dd>
            <dt><?php echo $_SESSION['riders']['tel']?></dt>
        </dl>
        <ul>
            <li><a class="grxx" href="?md=riders&cl=riders&at=personageInfo">个人信息</a></li>
            <li><a class="lsdd" href="?md=riders&cl=riders&at=orderHistory">历史订单</a></li>
            <li><a class="wdqb" href="?md=riders&cl=riders&at=myWallet">我的钱包</a></li>
            <li><a class="cjwt" href="?md=riders&cl=riders&at=FQA">常见问题</a></li>
            <li><a class="xxzx" href="?md=riders&cl=riders&at=messageConten">消息中心</a></li>
        </ul>
    </div>
</div>

<div class="content order_list_bg">
	<div class="order_list">
    	<ul>
            <?php foreach($rsp_list as $v){
                echo '<li>
                <h3>
                	<p>'.$v['shop_delivery_time'].'&nbsp;前送达</p>
                	<span>￥<b>'.$v['express_fee'].'</b></span>
                </h3>
                <h4>
                	<b>取货点：'.$v['orderInfo']['shop_name'].'</b>
                	<span>'.$v['shopInfo']['front_address'].'</span>
                </h4>
                 <h5>收货点：'.$v['orderInfo']['receiver_address'].'</h5>
                <label>配送距离：<span>'.round($v['jl']/1000,2).'</span> 公里</label>
                 <a class="a_bnt bnt_ljqd" href="?md=riders&cl=riders&at=finishOrderDetails&express_id='.$v['id'].'" >查看详情</a>
              
            </li>';
            }?>
<!--            <div class="box_bnt">-->
<!--                <a href="javascript:void(0)">查看详情</a>-->
<!--            </div>-->

        </ul>
    </div>
</div>

<?php if($rsp_list){
    $display = 'style="display: none"';
}else{
    $display = '';
}
?>
<div class="content no_order" <?php echo $display?>>
	<dl>
        <dd><img src="webroot/riders/images/no_order.png"></dd>
        <dt>还没有已完成的订单，快去抢单吧！</dt>
    </dl>
</div>

<div class="menu_bg">
	<div class="content">
    	<a class="a_xrw" href="?md=riders&cl=riders&at=OrdersList">
            <span></span>
            <p>新任务</p>
        </a>
        <a class="a_dqh" href="?md=riders&cl=riders&at=assignPick">
            <span></span>
            <p>待取货</p>
        </a>
        <a class="a_psz" href="?md=riders&cl=riders&at=dispatching">
            <span></span>
            <p>配送中</p>
        </a>
        <a class="a_ywc hov" href="?md=riders&cl=riders&at=finishOrderList">
            <span></span>
            <p>已完成</p>
        </a>
    </div>
</div>

<a class="bnt_refresh" href="javascript:location.reload();">刷新</a>

<div class="group_tc_bg" id="hpsd_pop">
    <div class="group_tc">
        <h3>温馨提示！</h3>
        <p>请确认货品已送达，如发现虚假按货品送达将面临50元一次惩罚！</p>
        <div class="bnt">
            <a href="javascript:void(0)" class="btn1">还未送达</a>
            <a href="javascript:void(0)" class="btn2">确认送达</a>
        </div>
    </div>
</div>

<div class="group_tc_bg" id="hpsd_qr_pop">
    <div class="group_tc">
        <h3>订单配送完成确认</h3>
        <div class="com">
            <div class="box">
                <label>订单配送情况：</label>
                <select name="">
                  <option>请选择</option>
                  <option>本人签收</option>
                  <option>家人/门卫代签</option>
                  <option>异常订单</option>                	
                </select>
            </div>
          	<div class="box">
                <label>骑手备注：</label>
                <textarea class="text" name=""></textarea>
            </div>
        </div>
        <div class="bnt">
            <a href="javascript:void(0)" class="btn1">取消</a>
            <a href="javascript:void(0)" class="btn2">确认</a>
        </div>
    </div>
</div>
<?php include_once 'layout/rfooter.php'?>
